﻿using Anley.DomainDrivenDesign.Contract.DependencyInjection;

namespace Anley.DomainDrivenDesign.Contract.Helper;

/// <summary>
/// 邮件帮助接口
/// </summary>
public interface IMailHelper
    : ISingletonAutoInject
{
    /// <summary>
    /// 发送邮件
    /// </summary>
    /// <param name="from"></param>
    /// <param name="to"></param>
    /// <param name="subject"></param>
    /// <param name="body"></param>
    /// <param name="isBodyHtml"></param>
    /// <param name="cc"></param>
    Task SendEmailSync(
        Tuple<string, string> from,
        List<Tuple<string, string>> to,
        string subject,
        string body,
        bool isBodyHtml = false,
        List<Tuple<string, string>>? cc = null);
}